import request from '@/utils/request'

export default {
  getQuestionById(id) {
    return request({
      url: '/qa/question/detail/' + id,
      method: 'get',
    })
  },
  addQuestion(question){
    return request({
      url: '/qa/question/add',
      method: 'post',
      data:question,
    })
  },
  updateQuestion(question){
    return request({
      url: '/qa/question/update',
      method: 'post',
      data:question,
    })
  },
    getQuestionListPage(current,limit,questionQuery){
      return request({
        // url:'/table/list'+current+'/'+limit,
        url:`/qa/question/pageQuestionCondition/${current}/${limit}`,
        method:'post',
        data:questionQuery,
      });
    },
    deleteQuestionId(id){
      return request({
        url:`/qa/question/${id}`,
        method:'delete',
      })
    },
}

